# $Id: PKGBUILD 2009-01-01 20:18:26
# Contributor: Carbon <carbonjiao@gmail.com>

pkgname=gparted-svn
pkgver=1123
pkgrel=1
pkgdesc="A Partition Magic clone, frontend to GNU Parted. SVN Revision"
arch=('i686' 'x86_64')
url="http://gparted.sourceforge.net"
license=('GPL2')
provides=('gparted')
conflicts=('gparted')
depends=('parted>=1.8.8' 'gtkmm')
makedepends=('e2fsprogs' 'parted' 'gettext' 'gnome-doc-utils' 'pkgconfig' 'subversion')
install=('gparted.install')
source=()
md5sums=()

_svntrunk=http://svn.gnome.org/svn/gparted/trunk
_svnmod=gparted

build() {
	cd ${startdir}/src
	# Source
	msg "SVN checkout..."
	svn co $_svntrunk --config-dir ./ $_svnmod/
	msg "SVN checkout done or the server timed out"

	msg "patch the autogen.sh to save time..."
	cd $_svnmod
	#patch < ../../autogen.sh.patch

	msg "Starting make..."
	mkdir build
	cd build

	../autogen.sh --prefix=/usr --disable-docs
	make || return 1
	make DESTDIR=${startdir}/pkg/ install
	rm -rf build
}
